<?php

namespace App\Http\Controllers\Api\Miniprogram;

use App\Http\Controllers\Controller;
use App\Models\System\CheckItem;
use App\Models\System\HomeBanner;

class HomeController extends Controller
{
    public function banners()
    {
        return $this->successJson(HomeBanner::with(['image'])->where('status', 1)->get());
    }

    public function selectedGoods()
    {
        return $this->successJson(CheckItem::with(['thumb'])->where('status', 1)->where('is_selected', 1)->orderBy('order')->get());
    }
}
